package com.example.demo.Controller;

import com.example.demo.Service.UserService;
import com.example.demo.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Controller;

/**
 * Description:
 * Date: 2024-07-30
 * Time: 18:09
 */
@Controller
//@ComponentScan("com/example/demo/Service")
public class UserController {
    private UserService userService;
    private Student student;

    public void hello() {
        System.out.println("UserController...");
        userService.hello();
    }

    @Autowired
    public void setUserService(UserService userService) {
        this.userService = userService;
    }
}
